package cn.bdqn.service;

import cn.bdqn.domain.SendFreight;
import cn.bdqn.utils.result.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 发货单业务接口
 * @author dkj
 */
public interface SendFreightService {

    /**
     * 根据id查询
     * @param id
     * @return
     */
    SendFreight queryByPrimaryKey(Integer id);


    /**
     * 根据发货单号模糊查询
     * @param sendFreightNumber
     * @return
     */
    public List<SendFreight> queryByLikeSendFreightNumber(String sendFreightNumber);


    /**
     * 根据发货订单和支付类型和发货单状态查询
     * @param currentPage
     * @param pageSize
     * @param sendFreightNumber
     * @param paymentType
     * @param sendFreightState
     * @return
     */
    public Page queryLikeSendFreightNumberByPaymentTypeBySendFreightState(
                                                                    Integer currentPage,
                                                                    Integer pageSize,
                                                                    String sendFreightNumber,
                                                                    Integer paymentType,
                                                                    Integer sendFreightState);

    /**
     * 新增
     * @param sendFreight
     */
    public SendFreight saveSendFreight(SendFreight sendFreight);

    /**
     * 更新
     * @param sendFreight
     */
    public void updateSendFreight(SendFreight sendFreight);
}
